Tamara\Wp\Plugin\TamaraCheckout D

Total Complexity 152
Dependencies 15
Dependents 2
Total lines 1,363
Lines of code 748
Logical lines of code 320
Comment lines 372
Methods 70
Properties 5

Methods 70

Method Rating Maintainability Complexity Lines of code
tamaraRefundPayment()
A
41 11 55
handleTamaraApi()
A
49 7 33
enqueueAdminSettingScripts()
S
58 8 13
updateTamaraCheckoutDataToOrder()
S
51 7 27
tamaraAuthoriseHandler()
S
53 6 23
getTotalToCalculate()
S
60 5 13
addTamaraWidgetScript()
S
50 3 41
registerTamaraCustomOrderStatuses()
S
43 1 65
registerServices()
S
57 4 18
enqueueScripts()
S
53 3 23
getTamaraOrderByWcOrderId()
S
56 3 19
initPlugin()
S
48 2 30
isProductPriceValid()
S
76 4 3
updateOrderStatusAndAddOrderNote()
S
62 3 11
forceCaptureTamaraOrder()
S
53 2 24
handleTamaraCancelUrl()
S
53 2 23
handleTamaraFailureUrl()
S
53 2 23
getTamaraAuthoriseFailedUrl()
S
58 2 16
tamaraCheckoutParams()
S
60 2 15
isOrderTamaraApproved()
S
68 3 7
addTamaraAuthoriseFailedMessage()
S
68 3 6
getDisplayedProductPrice()
S
66 3 9
logMessage()
S
63 3 10
initInstanceWithConfig()
S
67 3 8
tamaraProductPopupWidget()
S
61 2 12
addTamaraCustomOrderStatuses()
S
57 1 17
getTamaraOrderId()
S
69 2 7
activatePlugin()
S
70 2 6
getTamaraAuthoriseSuccessUrl()
S
72 2 6
__construct()
S
70 2 6
addRefundNote()
S
67 2 7
registerTamaraCronjob()
S
73 2 5
checkWooCommerceExistence()
S
64 2 9
handleTamaraCronjob()
S
71 2 7
logMessageFilePath()
S
77 2 3
adjustBillingPhoneDescription()
S
68 2 7
getAdminSettingLink()
S
66 2 8
showTamaraProductPopupWidget()
S
74 2 5
isRestRequest()
S
79 2 3
addCustomRewriteRules()
S
68 1 7
deactivatePlugin()
S
81 1 3
addSettingsLinks()
S
71 1 5
registerTamaraPaymentGateway()
S
76 1 4
setRestApiRequest()
S
81 1 3
noticeNonWooCommerce()
S
70 1 6
isOrderAuthorised()
S
78 1 3
handleTamaraSuccessUrl()
S
71 1 6
isPayByLaterEnabled()
S
78 1 3
getService()
S
80 1 3
getServiceView()
S
79 1 3
populateRestApiRequest()
S
77 1 4
getWCTamaraGatewayService()
S
80 1 3
getMinLimit()
S
79 1 3
getMaxLimit()
S
79 1 3
getInstalmentsMinLimit()
S
79 1 3
getInstalmentsMaxLimit()
S
79 1 3
getTamaraPopupWidgetPosition()
S
79 1 3
isPayByInstalmentsEnabled()
S
78 1 3
preventOrderCancelAction()
S
71 1 6
isTamaraGatewayEnabled()
S
78 1 3
isCustomLogMessageEnabled()
S
78 1 3
isCronjobEnabled()
S
78 1 3
isIframeCheckoutEnabled()
S
78 1 3
getWCTamaraGatewayOptions()
S
75 1 4
onSaveSettings()
S
80 1 3
addCronInterval()
S
68 1 7
unscheduleTamaraCronjob()
S
76 1 4
tamaraLoadTextDomain()
S
71 1 5
calculateInstalmentPlan()
S
63 1 10
getRestApiRequest()
S
82 1 3